/* 
 * File:   DefaultHttpEngine.h
 * Author: dell
 *
 * Created on 2012年4月2日, 上午10:36
 */

#ifndef DEFAULTHTTPENGINE_H
#define	DEFAULTHTTPENGINE_H

#include "common.h"
#include <evhttp/http_1.1/Http11HandlerFactory.h>
#include "IHttpEngine.h"
#include "RapidHttpServletFactory.h"

namespace Rapid{
    class DefaultHttpEngine : public IHttpEngine{
    public:
        DefaultHttpEngine(ServerConfig* serverConfig);
        virtual ~DefaultHttpEngine();

        virtual HttpServletFactory* getHttpServletFactory();

        virtual HttpHandlerFactory* getHttpHandlerFactory();

    protected:
        Http11HandlerFactory handlerFactory;
        RapidHttpServletFactory servletFactory;
        ServerConfig* serverConfig;    
    };

}
#endif	/* DEFAULTHTTPENGINE_H */

